<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Joomla! 2.5 热门文章和最新文章改造</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/prettify.css" type="text/css" />
<script type="text/javascript" src="../js/prettify.js"></script>
</head>

<body onload="prettyPrint();">
<h1>Joomla! 2.5 热门文章和最新文章改造</h1>
<hr />
<h3>最新文章增加可设置项目</h3>
<p>文件trunk/modules/mod_articles_popular/mod_articles_popular.xml</p>
<pre class="prettyprint linenums">
			&lt;fieldset name="display"&gt;
				
				&lt;field
					name="show_more"
					label="MOD_POPULAR_SHOW_MORE_LABEL"
					description="MOD_POPULAR_SHOW_MORE_DESC"
					type="radio"
					default="1"
				&gt;
					&lt;option value="1"&gt;JSHOW
					&lt;/option&gt;
					&lt;option value="0"&gt;JHIDE
					&lt;/option&gt;
				&lt;/field&gt;
				
				&lt;field
					name="show_number"
					label="MOD_POPULAR_SHOW_NUMBER_LABEL"
					description="MOD_POPULAR_SHOW_NUMBER_DESC"
					type="radio"
					default="1"
				&gt;
					&lt;option value="1"&gt;JSHOW
					&lt;/option&gt;
					&lt;option value="0"&gt;JHIDE
					&lt;/option&gt;
				&lt;/field&gt;
				
				&lt;field name="show_date" type="radio" default="1"
					label="JDATE"
					description="MOD_POPULAR_FIELD_SHOWDATE_DESC"
				&gt;
					&lt;option value="1"&gt;JSHOW
					&lt;/option&gt;
					&lt;option value="0"&gt;JHIDE
					&lt;/option&gt;
				&lt;/field&gt;

				&lt;field name="show_date_field" type="list" default="created"
					label="MOD_POPULAR_FIELD_DATEFIELD_LABEL"
					description="MOD_POPULAR_FIELD_DATEFIELD_DESC"
				&gt;
					&lt;option value="created"&gt;MOD_POPULAR_OPTION_CREATED_VALUE
					&lt;/option&gt;
					&lt;option value="modified"&gt;MOD_POPULAR_OPTION_MODIFIED_VALUE
					&lt;/option&gt;
					&lt;option value="publish_up"&gt;MOD_POPULAR_OPTION_STARTPUBLISHING_VALUE
					&lt;/option&gt;
				&lt;/field&gt;

				&lt;field name="show_date_format" type="text"
					default="Y-m-d H:i:s"
					label="MOD_POPULAR_FIELD_DATEFIELDFORMAT_LABEL"
					description="MOD_POPULAR_FIELD_DATEFIELDFORMAT_DESC" /&gt;

			&lt;/fieldset&gt;

</pre>
<p>中文语言文件trunk/language/zh-CN/zh-CN.mod_articles_popular.ini</p>
<pre class="prettyprint linenums">
COM_MODULES_DISPLAY_FIELDSET_LABEL="显示设置"
MOD_POPULAR_SHOW_MORE_LABEL="显示&amp;quot;More&amp;quot;"
MOD_POPULAR_SHOW_MORE_DESC="如果设置为显示，&amp;quot;More&amp;quot; 链接将被显示。"
MOD_POPULAR_SHOW_NUMBER_LABEL="显示&amp;quot;编号&amp;quot;"
MOD_POPULAR_SHOW_NUMBER_DESC="如果设置为显示，文章列表&amp;quot;编号&amp;quot;将被显示。"
MOD_POPULAR_FIELD_SHOWDATE_DESC="选择您是否想显示日期。"
MOD_POPULAR_FIELD_DATEFIELD_LABEL="日期字段"
MOD_POPULAR_FIELD_DATEFIELD_DESC="选择您想显示的日期字段。"
MOD_POPULAR_OPTION_CREATED_VALUE="创建时间"
MOD_POPULAR_OPTION_MODIFIED_VALUE="修改时间"
MOD_POPULAR_OPTION_STARTPUBLISHING_VALUE="开始发布时间"
MOD_POPULAR_FIELD_DATEFIELDFORMAT_LABEL="日期格式"
MOD_POPULAR_FIELD_DATEFIELDFORMAT_DESC="请输入有效日期格式。 格式信息请参阅：http://php.net/date 。"

</pre>
<p>英文语言文件trunk/language/en-GB/en-GB.mod_articles_popular.ini</p>
<pre class="prettyprint linenums">
COM_MODULES_DISPLAY_FIELDSET_LABEL="Display Options"
MOD_POPULAR_SHOW_MORE_LABEL="Show &amp;quot;More&amp;quot;"
MOD_POPULAR_SHOW_MORE_DESC="If set to Show, the &amp;quot;More&amp;quot; Link will show."
MOD_POPULAR_SHOW_NUMBER_LABEL="Show number"
MOD_POPULAR_SHOW_NUMBER_DESC="Select Show if you would like the number displayed."
MOD_POPULAR_FIELD_SHOWDATE_DESC="Select Show if you would like the date displayed."
MOD_POPULAR_FIELD_DATEFIELD_LABEL="Date Field"
MOD_POPULAR_FIELD_DATEFIELD_DESC="Select which date field you want to display."
MOD_POPULAR_OPTION_CREATED_VALUE="Created Date"
MOD_POPULAR_OPTION_MODIFIED_VALUE="Modified Date"
MOD_POPULAR_OPTION_STARTPUBLISHING_VALUE="Start Publishing Date"
MOD_POPULAR_FIELD_DATEFIELDFORMAT_LABEL="Date Format"
MOD_POPULAR_FIELD_DATEFIELDFORMAT_DESC="Please enter in a valid date format. See: http://php.net/date for formatting information."

</pre>
<hr />
<h3>最新文章增加可设置项目（是热门文章的子集）</h3>
<p>文件trunk/modules/mod_articles_latest/mod_articles_latest.xml</p>
<pre class="prettyprint linenums">
			&lt;fieldset name="display"&gt;
				
				&lt;field
					name="show_more"
					label="MOD_LATEST_SHOW_MORE_LABEL"
					description="MOD_LATEST_SHOW_MORE_DESC"
					type="radio"
					default="1"
				&gt;
					&lt;option value="1"&gt;JSHOW
					&lt;/option&gt;
					&lt;option value="0"&gt;JHIDE
					&lt;/option&gt;
				&lt;/field&gt;
				
				&lt;field name="show_date" type="radio" default="1"
					label="JDATE"
					description="MOD_LATEST_FIELD_SHOWDATE_DESC"
				&gt;
					&lt;option value="1"&gt;JSHOW
					&lt;/option&gt;
					&lt;option value="0"&gt;JHIDE
					&lt;/option&gt;
				&lt;/field&gt;

				&lt;field name="show_date_format" type="text"
					default="Y-m-d H:i:s"
					label="MOD_LATEST_FIELD_DATEFIELDFORMAT_LABEL"
					description="MOD_LATEST_FIELD_DATEFIELDFORMAT_DESC" /&gt;

			&lt;/fieldset&gt;

</pre>
<p>中文语言文件trunk/language/zh-CN/zh-CN.mod_articles_latest.ini</p>
<pre class="prettyprint linenums">
COM_MODULES_DISPLAY_FIELDSET_LABEL="显示设置"
MOD_LATEST_SHOW_MORE_LABEL="显示&amp;quot;More&amp;quot;"
MOD_LATEST_SHOW_MORE_DESC="如果设置为显示，&amp;quot;More&amp;quot; 链接将被显示。"
MOD_LATEST_FIELD_SHOWDATE_DESC="选择您是否想显示日期。"
MOD_LATEST_FIELD_DATEFIELDFORMAT_LABEL="日期格式"
MOD_LATEST_FIELD_DATEFIELDFORMAT_DESC="请输入有效日期格式。 格式信息请参阅：http://php.net/date 。"

</pre>
<p>英文语言文件trunk/language/en-GB/en-GB.mod_articles_latest.ini</p>
<pre class="prettyprint linenums">
COM_MODULES_DISPLAY_FIELDSET_LABEL="Display Options"
MOD_LATEST_SHOW_MORE_LABEL="Show &amp;quot;More&amp;quot;"
MOD_LATEST_SHOW_MORE_DESC="If set to Show, the &amp;quot;More&amp;quot; Link will show."
MOD_LATEST_FIELD_SHOWDATE_DESC="Select Show if you would like the date displayed."
MOD_LATEST_FIELD_DATEFIELDFORMAT_LABEL="Date Format"
MOD_LATEST_FIELD_DATEFIELDFORMAT_DESC="Please enter in a valid date format. See: http://php.net/date for formatting information."

</pre>
<hr />
<h3>参考语言</h3>
<pre class="prettyprint linenums">
JGLOBAL_SHOW_AUTHOR_LABEL="显示作者"
JGLOBAL_SHOW_CATEGORY_DESC="如果设置为显示，则文章的分类名称会被显示。"
JGLOBAL_SHOW_CATEGORY_DESCRIPTION_DESC="显示或隐藏所选分类的介绍。"
JGLOBAL_SHOW_CATEGORY_DESCRIPTION_LABEL="分类介绍"
JGLOBAL_SHOW_CATEGORY_IMAGE_DESC="显示或隐藏所选分类的图片。"
JGLOBAL_SHOW_CATEGORY_IMAGE_LABEL="分类图片"
JGLOBAL_SHOW_CATEGORY_LABEL="显示分类"
JGLOBAL_SHOW_CATEGORY_TITLE="分类标题"
JGLOBAL_SHOW_CATEGORY_TITLE_DESC="如果设置为显示， 分类标题将显示为页面的副标题。副标题通常会显示内的 &quot;H2&quot; 标签。"
JGLOBAL_SHOW_CREATE_DATE_DESC="如果设置为显示，则文章的创建日期和时间会被显示。这是全局设置，但是可被分类，菜单和文章设置更改。"
JGLOBAL_SHOW_CREATE_DATE_LABEL="显示创建日期"
JGLOBAL_SHOW_DATE_DESC="是否在文章列表中显示日期列。选择隐藏则不显示该列，或者选择您想显示的日期。"
JGLOBAL_SHOW_DATE_LABEL="显示日期"

</pre>
</body>
</html>
